/*
 * @Author: funlee 
 * @Email: i@funlee.cn 
 * @Date: 2017-12-11 15:47:17 
 * @Last Modified time:   2017-12-11 15:47:17 
 * @Description: 地图联动
 *               openlayer3采用MVC模型
 *               V即View
 */
import ol from 'openlayers'
import 'openlayers/dist/ol.css'
import logo from '../../img/logo.png'

export default () => {
  // 创建一个视图
  var view = new ol.View({
    center: [13078573.75444912, 4800741.73727404],
    zoom: 8
  });

  // 创建第一个地图
  new ol.Map({
    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM()
      })
    ],
    view: view,
    target: 'map1'
  });

  // 创建第二个地图
  new ol.Map({
    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM()
      })
    ],
    view: view,
    target: 'map2'
  });

}